<template>
    <div>
        <Login v-if="showSwitch === 'login'" />
        <Register v-else-if="showSwitch === 'register'" />
        <div v-else>
            找回密码
        </div>
    </div>
</template>

<script setup lang="ts">
import { computed } from "vue";
import { useRoute } from "vue-router";
import Login from "./components/Login.vue"
import Register from "./components/Register.vue"

const route = useRoute();

const showSwitch = computed(() => {
    return route.query.showSwitch || 'login';
})
</script>

<style scoped lang="less"></style>